/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author flintx
 */
import java.io.IOException;
import junit.framework.*;
import mailctrl.MailCreater;
import org.jdom.Element;

public class MailCreater_test extends TestCase {
    MailCreater mcreater;
    public void testCreater() throws IOException
    {         
        mcreater.newXMLMail();
        Element newElement = mcreater.packageOperation("QQ", "D:/", null);
        mcreater.addOperation(newElement);
        newElement = mcreater.packageOperation("MSN", "D:/", null);
        mcreater.addOperation(newElement);
        mcreater.buildMailContent();
        Element newElement1 = mcreater.packageOperation("LINUXQQ", "D:/", null);
        mcreater.modifyOperation(0, newElement1);
        mcreater.delOperation(0);
        mcreater.buildMailContent();
    }
    public void testDel()
    {

    }
    
    @Override
    protected void setUp()
    {
        mcreater = new MailCreater();
    }

    public static void main(String[] args)
    {
        TestCase test = new MailCreater_test();
        junit.textui.TestRunner.run(test);
    }
}
